package pers.qianyu.module.db.sync;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import pers.qianyu.LambLiteApplication;
import pers.qianyu.module.core.domain.system.entity.SysRoleResourcePO;
import pers.qianyu.module.system.dao.SysRoleResourceDao;

/**
 * @author mizzle rain
 * @date 2021-05-03 22:54
 */
@SpringBootTest(classes = LambLiteApplication.class)
@RunWith(SpringRunner.class)
public class SyncPermResource {
    @Autowired
    private SysRoleResourceDao sysRoleResourceDao;

    @Test
    public void test2() {
        for (int i = 0; i < 61; i++) {
            SysRoleResourcePO entity = new SysRoleResourcePO();
            entity.setResourceId((long) (i + 1));
            entity.setRoleId(1L);
            sysRoleResourceDao.insert(entity);
        }
    }
}
